package com.itheima.DuiXiang;

public class LeiHeDuiXiang_User {
    //1.属性
    private String name;
    private String password;
    private String passwordCheck;
    private String email;
    private String gender;
    private int age;
//
//    //2.空参的构造方法
//    public LeiHeDuiXiang_User(){}
//
//    //3.带全部参数的构造方法
//    public LeiHeDuiXiang_User(String name,String password,String passwordCheck,String email,String gender,int age){
//        this.name = name;
//        this.password = password;
//        this.passwordCheck = passwordCheck;
//        this.email = email;
//        this.gender = gender;
//        this.age = age;
//    }
//
//    //4.get和set方法
//    public void setName(String name){
//        this.name = name;
//    }
//    public String getName(){
//        return name;
//    }

    //快捷健
    //alt + insert
    //生成构造方法————constructer

    //2.空参————select none
    public LeiHeDuiXiang_User() {
    }

    //3.带全部参数的构造方法————constructer
    //ctrl + a
    public LeiHeDuiXiang_User(String name, String password, String passwordCheck, String email, String gender, int age) {
        this.name = name;
        this.password = password;
        this.passwordCheck = passwordCheck;
        this.email = email;
        this.gender = gender;
        this.age = age;
    }

    //4.get和set方法————Genter and Setter
    //ctrl + a
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPasswordCheck() {
        return passwordCheck;
    }

    public void setPasswordCheck(String passwordCheck) {
        this.passwordCheck = passwordCheck;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}


//插件PTG 1秒生成标准JavaBean